/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package au.edu.swin.swinvehicle.driver;

import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author Administrator
 */
@Remote
public interface DriverManagerRemote {

    public void addDriver(DriverDetailedTO to) throws DriverManagerException;

    public void editDriver(DriverDetailedTO to) throws DriverManagerException;

    public void editDriverDetails(DriverDetailedTO to) throws DriverManagerException;

    public void deleteDriver(Long id) throws DriverManagerException;

    public DriverDetailedTO getDriver(Long id) throws DriverManagerException;

    public List<DriverTO> getAllDrivers() throws DriverManagerException;

    public List<DriverDetailedTO> getAllDetailedDrivers() throws DriverManagerException;

    public boolean isUsernameAvailable(String userName) throws DriverManagerException;

    public Long authenticate(String username, String password) throws DriverManagerException;
}
